package com.china.produce.controller;


import com.china.produce.factorys.risk.RiskFactory;
import com.china.produce.service.risk.OpsRiskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName
 * @Author niujie
 * @Version
 * @Description
 * @CreateTime 2023/5/25
 */
@RestController
@RequestMapping("/risk")
public class RiskController {

    @Autowired
    private RiskFactory riskFactory;

    @GetMapping("/topicBean")
    public void topicBean()
    {
        OpsRiskService opsRisk = riskFactory.getBeanByTopic("opsRisk");

        String dost = opsRisk.dost();

        System.out.println(dost);
    }
}
